<!--上面紧接title end-->
</head>
<body>
<!--header-->
<header>
    <div class="header_top main">
        <a href="{:U('Index/index')}"><img class="header_logo" src="__IMG__/logo.png" width="135" height="30" alt=""/></a>
        <div class="header_slogan"> 一图一创新，一图一世界</div>
        <div class="header_search"><input class="text" type="text" placeholder="搜多关键字"/><input class="ser_btn" type="button" value="搜索"/></div>

        <?php if(session("tel")){ ?>

            <div class="header_my">
                <if condition="$src">
                    <a class="photo" href="{:U('My/index')}"><img src="./Uploads/{$src}" alt=""/></a>
                    <else/>
                    <a class="photo" href="{:U('My/index')}"><img src="__IMG__/photo.png" alt=""/></a>
                </if>

                <a class="msg" href="{:U('My/msg')}"><img src="__IMG__/xx.png" alt=""/></a>
                <a href="{:U('Register/loginOut')}" style="background: none; padding:0; font-size: 12px;">退出</a>
            </div>

        <?php }else{ ?>

            <div class="header_login"><a href="{:U('Register/login')}">登录</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="{:U('Register/register')}">注册</a></div>

        <?php } ?>

    </div>
    <div class="header_nav">
        <div class="main">
            <a href="{:U('Index/index')}" class="<?php if($nav == 1){echo 'on';} ?>">首页</a>
            <a href="{:U('Index/hot')}" class="<?php if($nav == 2){echo 'on';} ?> pr">热门 <img class="nav_hot" src="__IMG__/hot.png" width="37" height="17" alt=""/></a>
            <a href="{:U('Index/info')}" class="<?php if($nav == 3){echo 'on';} ?>">资讯</a>
            <a href="{:U('Index/tech')}" class="<?php if($nav == 4){echo 'on';} ?>">科技</a>
            <a href="{:U('Index/life')}" class="<?php if($nav == 5){echo 'on';} ?>">生活</a>
            <a href="{:U('Index/fund')}" class="<?php if($nav == 6){echo 'on';} ?>">基金</a>
            <a href="{:U('Index/tel')}" class="<?php if($nav == 7){echo 'on';} ?>">联系我们</a>
        </div>
    </div>
</header>
<!--header end-->